package com.example.g7640.enums;

import lombok.Getter;

@Getter
public enum UserType {

    vendor(0,"vendor","供应商"),
    customer(1,"customer","客户"),
    admin(2,"admin","管理员"),
    ;

    private Integer index;

    private String code;

    private String desc;
    UserType(Integer index,String code,String desc){
        this.index = index;
        this.code = code;
        this.desc = desc;
    }


    public boolean equal(Integer index){
        return this.index.equals(index);
    }

}
